{%ifnot Type TItemPropertyType::PT_SET%}<span class="label{%if Required%} required{%endif%}">{% i < Caption %}{%if Required%}<sup>*</sup>{%endif%}:</span>&nbsp;{%endif%}
{%switch Type%}
	{%case TItemPropertyType::PT_BOOL%}{%insert formfields/bool.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_PASSWORD%}{%insert formfields/password.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_DATE%}{%insert formfields/date.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_MULTILINE%}{%insert formfields/multiline.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_HTML%}{%insert formfields/html.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_COLLECTION%}{%insert formfields/collection.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_SET%}{%insert formfields/set.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_IMAGE%}{%insert formfields/image.tpl%}{%endcase%}
	{%case TItemPropertyType::PT_FILE%}{%insert formfields/file.tpl%}{%endcase%}				
	{%case TItemPropertyType::PT_REFERENCE%}{%insert formfields/reference.tpl%}{%endcase%}				
	{%default%}
		{%if Selection%}
			{%insert formfields/select.tpl%}
		{%else%}
			{%if ReadOnly%}
			<span class="property-value">{% q < Value %}</span>
			{%else%}
			<input class="property-value" type="text" name="{% Name %}" value="{% q <  Value %}" />{%insert formfields/clear.tpl%}
		{%endif%}
		{%endif%}
	{%endcase%}
{%endswitch%}

